package agency.tango.materialintroscreen.animations;

import ohos.agp.components.Component;

/**
 * @ProjectName: material-intro-screen-master
 * @Package: agency.tango.materialintroscreen.animations
 * @ClassName: IViewTranslation
 * @Description: 控件随着滑动显示的位移动画接口
 * @CreateDate: 2021/4/12 16:04
 * @UpdateDate: 2021/4/12 16:04
 * @UpdateRemark: 暂无
 * @Version: 1.0
 */
public interface IViewTranslation {
    /**
     * 控件的滑动动画
     *
     * @param view       需要开启动画的控件
     * @param percentage 动画随时间变化的属性值
     */
    void translate(Component view, float percentage);
}
